<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>补充几个方法</title>
    <style>
        .list{
            height: 100px;
            border: 1px solid black;
            margin: 10px;
        }
    </style>
</head>
<body>
    <div id="one" class="list">大家好！我是one！</div>
    <div id="two" class="list">
        <li>张三</li>
        <li>李四</li>
    </div>
    <div id="three" class="list"></div>
    <input type="text" id="txt">
    <button id="append">append(追加)</button>
    <button id="prepend">prepend(前置追加)</button>
    <button id="after">after(之后添加)</button>
    <button id="before">before(之前添加)</button>
    <button id="huan">one跟two换位置</button>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script src="./js/index04.js"></script>
</body>
</html>